break;
case 7:
wpt_tmp->icon_descr = (char *) pread();
+ wpt_tmp->wpt_flags.icon_descr_is_dynamic = 1;
break;
case 8: /* NULL Terminated (vs. pascal) descr */
bbufp = bbuf;
*/
holder = csv_stringtrim(s, "", 0);
if (strlen(holder))
- wpt_tmp->description = holder;
+ wpt_tmp->description = holder;
+ else
+ xfree(holder);
break;
case 3:
wpt_tmp->latitude = atof(s);
holder = csv_stringtrim(s, "", 0);
if (strstr(holder, "http:") != NULL)
wpt_tmp->url = holder;
+ else
+ xfree(holder);
break;
default:
/* whoa! nelly */